package com.nameless.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * -*- coding:utf-8 -*-
 *
 * @author 太阳偷渡青山
 * @software IntelliJ IDEA
 * @date 2023/03/04 15:04
 * @Description
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("tb_integration_history")
@ApiModel(value="IntegrationHistory对象", description="")
public class IntegrationHistory implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "会员ID")
    private Long memberId;

    @ApiModelProperty(value = "订单id")
    private String orderNo;

    @ApiModelProperty(value = "创建记录时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date createTime;

    @ApiModelProperty(value = "金额变化类型1加  2 减")
    private Integer amountType;

    @ApiModelProperty(value = "金额改变数量")
    private BigDecimal amount;

    @ApiModelProperty(value = "积分变化类型1加  2 减")
    private Integer changeType;

    @ApiModelProperty(value = "积分改变数量")
    private Integer changeCount;

    @ApiModelProperty(value = "操作人员")
    private String operateMan;

    @ApiModelProperty(value = "操作备注")
    private String operateNote;

    @ApiModelProperty(value = "支付支付")
    private Integer isPay;

    @ApiModelProperty(value = "积分来源：0->自驾服务消费金额；1->参与官方活动；2->官网或者app顶专车或者个人消费后（路桥费，停车费，税费不计入）")
    private Integer sourceType;

    @ApiModelProperty("支付类型")
    private Integer status;
}

